//主程序文件run.cpp
#include "Triangle.hpp"
#include <iostream>
using namespace std;

int main() {
    Triangle triangle1 = Triangle();
    Triangle triangle2 = Triangle();
    Triangle triangle3 = Triangle();
    triangle1.Setabc(3, 4, 5); //最熟悉的勾三股四弦五
    triangle2.Setabc(6, 6, 6); //一个等边三角形
    triangle3.Setabc(1, 1, 2); //不存在的三角形
    cout << "周长：" << triangle1.Perimeter() << "，面积：" << triangle1.Area() << endl;
    cout << "周长：" << triangle2.Perimeter() << "，面积：" << triangle2.Area() << endl;
    cout << "周长：" << triangle3.Perimeter() << "，面积：" << triangle3.Area() << endl;
    return 0;
}